<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
    dir="{% if LANGUAGE_BIDI %}rtl{% else %}ltr{% endif %}"
    xml:lang="{% firstof LANGUAGE_CODE 'en' %}"
    lang="{% firstof LANGUAGE_CODE 'en' %}">
  <head>
    <title>{% block title %}{% endblock %} - Cards Builder</title>

	<link type="text/css" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/themes/smoothness/jquery-ui.css" rel="stylesheet"/>
	<link type="text/css" href="/static/css/style.css" rel="stylesheet"/>
    {% block css %}{% endblock %}

    {% block jquery %}
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
    {% endblock %}
    {% block jquery_ui %}
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js"></script>
    {% endblock %}

    {% block preload_js %}{% endblock %}

    {% block extra-head %}{% endblock %}
  </head>

  <body>
    <div id="wrapper">
      <div id="header">
        <a id="logo" href="/">Cards Builder</a>
      </div>

      <div class="columns">
        <div id="content" class="column">
          <div id="glow">
            <div id="glow-static">
              {% block content-header %}
                {% if error %}<div class="error">{{ error }}</div>{% endif %}
                {% if info %}<div class="info">{{ info }}</div>{% endif %}
                {% if messages %}
                  {% for message in messages %}
                    <div class="info">{{ message }}</div>
                  {% endfor %}
                {% endif %}
              {% endblock %}

              {% block content %}{% endblock %}
            </div>
          </div>
        </div>

        <div id="sidebar" class="column">
          {% block sidebar %}
          {% endblock %}
        </div>
      </div>

      <div id="footer">
        <table>
          <tbody>
            <tr>
              <td class="left"><a href="admin">Administration</a></td>
              <td class="right">Latest site update: June 23, 2011</td>
            </tr>
          </tbody>
        </table>
      </div>
    </div>

    {% block js %}
    {% endblock %}
  </body>
</html>
